package com.level.system.controller.EMR;

import com.level.system.base.ResponseBean;
import com.level.system.service.HISUploadService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 医保上传
 */
@RestController
@RequestMapping("/api")
public class HealthCareController {
    @Resource
    private HISUploadService hisUploadService;

    /**
     * 同步医保上传接口
     * @param jgid
     * @param mcno
     * @param docid
     * @param emrtype
     * @return
     */
    @RequestMapping("/healthCare")
    public ResponseBean<String> healthCare_zy(String jgid,String mcno,String docid,String emrtype,String hzflag,String jgno){
        return hisUploadService.healthCare(jgid,mcno,docid,emrtype,hzflag,jgno);
    }

    /**
     * 2022年新医保上传
     * @param jgid
     * @param mcno
     * @param docid
     * @author zcw
     * @date 2022-02-14 10:00
     * @return com.level.system.base.ResponseBean<java.lang.String>
     */
    @RequestMapping("/healthCare_2022")
    public ResponseBean<String> healthCare_new(String jgid,String mcno,String docid){
        return hisUploadService.healthCare_new(jgid,mcno,docid);
    }
}
